<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>
    <p>点到的是: <span id="username"></span></p>
    <button id="btn">开始点名</button>
    <script>
        let btn = document.getElementById("btn");
        let username = document.getElementById("username");
        // let t = "sdsasdsad";
        // username.innerHTML = t;
        // console.log(username)
        btn.onclick = function() {
            let arr = ['李金水', '陈忠权', '吴伟泽', '邹智祥', '赖锋洹', '张锡军', '陈奕勇', '焦宇阳', '罗琦', '周黄阿豪', '陈建',
                '农琅程', '林欢', '张铭龙', '张展亿', '马富康', '吴程程', '谢杰海', '刘万军',
                '施泽中', '冯浚聪', '石艳阳', '廖丕云', '段明', '卢楚炎', '程碧富', '朱书豪', '何高', '杨宇航', '杜依洋', '周德胜',
                '邱永劲', '罗彬', '熊博文', '王硕', '温俊林', '夏东升', '黄子发', '邓君',
                '黄鸿鹏', '李茂林', '陈汝威', '麦子彬', '王光彩', '蔡东赤', '卢儒山', '张境锋', '蔡泽钏', '周园', '郑华',
                '梁自立', '袁国文'
            ];

            // console.log(username);
            let len = arr.length;
            let number = Math.ceil(Math.random() * len);
            username.innerHTML = arr[number];

            console.log(number);
        }
    </script>
</body>

</html>